//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package cn.iocoder.yudao.module.ai.utils.sm.sm2;

import cn.iocoder.yudao.module.ai.utils.sm.Util;
import org.bouncycastle.math.ec.ECPoint;

import java.math.BigInteger;

public class SM2KeyVO {
    BigInteger privateKey;
    ECPoint publicKey;

    public SM2KeyVO() {
    }

    public BigInteger getPrivateKey() {
        return this.privateKey;
    }

    public void setPrivateKey(BigInteger privateKey) {
        this.privateKey = privateKey;
    }

    public ECPoint getPublicKey() {
        return this.publicKey;
    }

    public void setPublicKey(ECPoint publicKey) {
        this.publicKey = publicKey;
    }

    public String getPubHexInSoft() {
        return Util.byteToHex(this.publicKey.getEncoded(false));
    }

    public String getPriHexInSoft() {
        return Util.byteToHex(this.privateKey.toByteArray());
    }
}
